using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerAnimation : MonoBehaviour
{
    [SerializeField] private Animator anim;

    public void PlayerRunBegin()
    {
        anim.SetBool("IsRun", true);
    }
    
    public  void PlayerRunEnd()
    {
        anim.SetBool("IsRun", false);
    }

    public void PlayerJump()
    {
        anim.SetTrigger("Jump");
    }

    public void PlayerUp()
    {
        anim.SetBool("IsUp", true);
        anim.SetBool("IsDown", false);
    }
    
    public void PlayerDown()
    {
        anim.SetBool("IsUp", false);
        anim.SetBool("IsDown", true);
    }

    public void PlayerLand()
    {
        anim.SetBool("IsDown", false);
        anim.SetBool("IsUp", false);
    }
}
